#include <iostream>
using namespace std; 

class CDocument{
public:
	virtual Serialize(){
		cout<<"Dwq"<<endl;
	}
	void OnFileOpen(){
		Serialize();
	}
};
class CMyDoc:public CDocument{
public:
	virtual Serialize(){
		cout<<"Dwwd"<<endl;
	}	
};
int main(){
//	CMyDoc myDoc;
//	myDoc.OnFileOpen();

	CDocument* c = new CMyDoc;
	c->OnFileOpen();
	

return 0;
}
